package com.nuoniu.sibanyun.service.finance;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nuoniu.sibanyun.entity.dto.AccountingAuxiliaryLedgerDto;
import com.nuoniu.sibanyun.entity.dto.AccountingLedgerDto;
import com.nuoniu.sibanyun.entity.finance.VAccountingLedger;
import com.nuoniu.sibanyun.entity.finance.VAccountingSearchProgramme;
import com.nuoniu.sibanyun.entity.finance.VAccountingVoucherDetail;

import java.util.List;

/**
 * <p>
 * 会计凭证细表 服务类
 * </p>
 *
 * @author 小啊刚
 * @since 2021-04-09
 */
public interface IVAccountingVoucherDetailService extends IService<VAccountingVoucherDetail> {

    /**
     * 根据会计科目获取
     * @author 小啊刚
     * @date 2021-04-14
     */
    Integer getByAccountingId(Long id);

    /**
     * 获取科目金额
     * @author 小啊刚
     * @date 2021-05-10
     */
    List<VAccountingVoucherDetail> getAccountingAmount(String accountingIds);


    List<VAccountingLedger> countAccounting(VAccountingSearchProgramme searchProgramme);

    /**
     * 修改状态
     * @author 小啊刚
     * @date 2021-05-11
     */
    void updateStatus(String aIds);

    /**
     * 获取总分类账明细
     * @author 小啊刚
     * @date 2021-05-11
     */
    List<AccountingLedgerDto> getLedgerDetailList(VAccountingSearchProgramme searchProgramme);

    /**
     * 获取总分类辅助明细
     * @author 小啊刚
     * @date 2022-05-19
     */
    List<AccountingAuxiliaryLedgerDto> getAuxiliaryLedgerDetailList(VAccountingSearchProgramme searchProgramme);

    /**
     * 获取明细
     * @author 小啊刚
     * @date 2022-05-20
     */
    VAccountingVoucherDetail getManDetail(Long id);
}
